<?php

namespace app\beautiful\model\appointment;

use app\beautiful\model\project\ProjectModel;
use app\common\model\CommonModel;

class CPModel extends CommonModel
{
    protected $name = 'beautiful_commission_project';
    protected $pk = 'cp_id';

    public function projects()
    {
        return $this->hasMany(ProjectModel::class,'project_id','project_id');
    }
}
